package cn.amos.mvc.web;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author amos.wang
 */
@RestController
@RequestMapping
public class HelloController {

    @RequestMapping("hello/{msg}")
    public String hello(@PathVariable("msg") String msg) {
        return "Hello " + msg;
    }

}
